package com;

import com.apex.common.constant.HttpConfig;
import com.apex.util.DictionaryConfig;
import com.edu.orm.datasource.DynamicDataSourceRegister;
import com.edu.orm.repository.impl.CustomRepositoryFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-4-3
 */
@EnableEurekaClient
@SpringBootApplication
@EnableJpaRepositories(repositoryFactoryBeanClass = CustomRepositoryFactoryBean.class)
@EnableConfigurationProperties({HttpConfig.class, DictionaryConfig.class})
@EnableTransactionManagement
@Import({DynamicDataSourceRegister.class})
@EnableAsync
public class SpringBootWxApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootWxApplication.class, args);
    }
}
